import requests
import json
from pyquery import PyQuery as jq
url = "http://zu.fang.com/house/i32/"
data = ""
headers = json.loads(r'''{
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Accept-Encoding": "gzip, deflate",
    "Accept-Language": "zh-CN,zh;q=0.9",
    "Connection": "keep-alive",
    "Cookie": "global_cookie=ucf134re8qhlxv1iqdmcyau9417jl5wsbk7; Integrateactivity=notincludemc; indexAdvLunbo=lb_ad1%2C0%7Clb_ad2%2C0; unique_cookie=U_t7vgca0xl22z99gk83picg6bk1kjlzzbovt*1; integratecover=1; SoufunSessionID_Rent=1_1536807200_1852; ASP.NET_SessionId=prekh4ahza3szljr2bvg0212; polling_imei=2bc74439d0d8e2b3; city=www; Rent_StatLog=e8ef907f-4ab5-4aa5-85fb-769913c2b45e; keyWord_recenthousebj=%5b%7b%22name%22%3a%22%e6%b5%b7%e6%b7%80%22%2c%22detailName%22%3a%22%22%2c%22url%22%3a%22%2fhouse-a00%2f%22%2c%22sort%22%3a1%7d%5d; Captcha=2B594A6563476B69574C623745706B6D64725731534B6572307757496A56484E614361642F4D703435354D64546E3836756A45546F7564374565534F367A4F584B596F4E5A6A6E52656A383D",
    "Host": "zu.fang.com",
    "Referer": "http://zu.fang.com/house/i31/",
    "Upgrade-Insecure-Requests": "1",
    "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
}''')

resp = requests.get(url, data=data, headers=headers)
lists = jq(resp.text)('#listBox > div.houseList > dl:nth-child(1)')
lists = lists('.info.rel')
lists = lists('div:nth-child(4)')
print(lists.html())
#listBox > div.houseList > dl:nth-child(1) > dd > div.moreInfo